package com.example.myproject.tracker;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "tracker")
public class TrackerConfig {
    private int port = 6969;
    private String dataDir = "/path/to/torrent/files";
    private String announceUrl = "http://localhost:6969/announce";
    public String getAnnounceUrl() {
        return announceUrl;
    }

    public void setAnnounceUrl(String announceUrl) {
        this.announceUrl = announceUrl;
    }
}